<template>
    <a-form :form="form" layout="vertical" class="rx-a-form-vertical">
        <a-form-item :label="i18n('form.previewConfiguration','预览配置')">
            <a-checkbox v-model="form.isShowPreview" >
                {{i18n('form.isShowButton','是否显示预览按钮')}}
            </a-checkbox>
        </a-form-item>
        <a-form-item :label="$ti18('rxList.download', '下载')">
            <a-checkbox v-model="form.isShowDown" >
                {{i18n('form.isShowDown','是否显示下载按钮')}}({{i18n('terminal','移动端')}})
            </a-checkbox>
        </a-form-item>
    </a-form>
</template>

<script>
export default {
    name: "renderConfig_appendix",
    props:["layerid","destroy"],
    data(){
        return {
            form: {
                isShowPreview: false,
                isShowDown : false
            },
        }
    },
    methods:{
        i18n(name,text,key){
            return this.$ti18(name,text,"formCellRender",key);
        },
        setData(data, fields) {
            Object.assign(this.form,data)
        },
        getData() {
            return this.form;
        },
        validate(callback) {
            callback();
        },
        onChange(e){
            this.form.isShowPreview=e.target.checked;
        }
    }
}
</script>

<style scoped>

</style>